import { post } from "../service";

interface CreateReq {
    name: string,
    type_id: number,
    version: string,
    description: string,
    body: Uint8Array,
}

interface CreateRes {
    id: number,
}

export const create = async (req: CreateReq) => {
    return await post('/api/dev_file/create', req) as CreateRes;
}

interface DeleteReq {
    id: number,
}

export const delete2 = async (req: DeleteReq) => {
    await post('/api/dev_file/delete', req);
}

type GetReq = DeleteReq;

export const get = async (req: GetReq) => {
    
}